

import request from '@/router/axios'

const prefix = '/rca/swckstationdailyreport'

export function fetchList(query) {
  return request({
    url: prefix+'/page',
    method: 'get',
    params: query
  })
}

export function addObj(obj) {
  return request({
    url: prefix,
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return request({
    url: prefix+'/' + id,
    method: 'get'
  })
}

export function delObj(id) {
  return request({
    url: prefix+'/' + id,
    method: 'delete'
  })
}

export function putObj(obj) {
  return request({
    url: prefix,
    method: 'put',
    data: obj
  })
}
